package com.jac.alapores.domain;

import java.io.Serializable;

import javax.persistence.Id;

import fi.foyt.foursquare.api.entities.Category;

public class AlaporesCategory
implements Serializable
{
private static final long serialVersionUID = 1L;
	
	@Id
	private String ID;
	private String parentCategoryID;
	private String name;
	private String icon;
	
	public AlaporesCategory()
	{
		
	}
	
	public AlaporesCategory(Category pCategory) 
	{
		this(pCategory, null);
	}
	
	public AlaporesCategory(Category pCategory, String pParentID)
	{
		ID = pCategory.getId();
		parentCategoryID = pParentID;
		setName(pCategory.getName());
		setIcon(pCategory.getIcon());
	}
	
	public String getID()
	{
		return ID;
	}
	public void setID(String pID)
	{
		ID = pID;
	}	
	public String getparentCategoryID()
	{
		return parentCategoryID;
	}
	public void setparentCategoryID(String pCategoryID)
	{
		parentCategoryID = pCategoryID;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIcon() {
		return icon;
	}
}
